const fs = require('fs')

const rs = fs.createReadStream('./1.jpg')
const ws = fs.createWriteStream('./2.jpg')

// 流 stream 与 管道 pipe
rs.pipe(ws)